package com.m2bshop.shop.dao;

import com.m2bshop.shop.pojo.Favorites;
import com.m2bshop.shop.pojo.JMFgoods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author asus
 * @create 2022/6/14 0:08
 */
@Mapper
@Repository
public interface FavoritesDao {
    @Select("select * from favorite where userid = #{userid}")
    public List<Favorites> GetGoodsList(@Param("userid") int userId);
    @Select("DELETE FROM favorite where id=#{id}")
    public void dele(@Param("id") int id);
}
